package com.tvunetworks.center.device.service;


import com.tvunetworks.center.common.model.UserBehavior;

import java.util.List;
import java.util.Map;
/**
 * @program: tvucc-aggregator
 * @author lebronchen
 * @create: 2019-03-26 10:30
 **/
public interface UserBehaviorService {
    /**
     * 更新用户行为记录
     * @param userBehavior  userBehavior
     * @throws Exception  编译异常
     */
   void updataUserBehavior(UserBehavior userBehavior) throws Exception;

    /**
     *
     * @param userBehavior userBehavior
     * @throws Exception 编译异常
     */
     void updataUserBehaviorForMv(UserBehavior userBehavior) throws Exception;

    /**
     *
     * @param uid uid
     * @return UserBehavior
     * @throws Exception 编译异常
     */
   UserBehavior selectUserBehaviorByUid(String uid) throws  Exception;

    /**
     *
     * @param uid uid
     * @param pn pn
     * @return UserBehavior
     * @throws Exception 编译异常
     */
   UserBehavior userBehavior(String uid, String pn) throws  Exception;

    /**
     *
     * @param userId userId
     * @param sync sync
     */
   void setUserTimeLockBehavior(String userId, boolean sync);

    /**
     *
     * @param userId userId
     * @param pn pn
     * @return Map
     */
   Map<String, String> getUserBehavior(String userId, String pn);

    /**
     *
     * @param userBehavior userBehavior
     * @return List
     */
    List<UserBehavior> queryUserBehaviorByExample(UserBehavior userBehavior);

    /**
     *
     * @param userBehavior userBehavior
     * @return int
     */
    int delUserBehavior(UserBehavior userBehavior);
}
